
import http from '@/util/http'

// 获取插件列表
export function getPlugins() {
    return http.get('/plugin/lists');
}

// 安装插件
export function installPlugin(name) {
    return http.post('/plugin/install',{name});
}

// 卸载插件
export function uninstallPlugin(name) {
    return http.post('/plugin/uninstall',{name});
}

// 获取配置
export function getSetting(name) {
    return http.get('/plugin/setting',{params:{name}});
}

// 修改配置
export function setSetting(data) {
    return http.post('/plugin/setSetting',data);
}